import requests

url = 'https://www.baidu.com'
response = requests.get(url)

if response.status_code == 200:
    print('请求成功')
    print('hello world')
else:
    print(f'请求失败，状态码: {response.status_code}')